package TestInterface;

public class TestInterface {
	public static void main(String[] agrs) {
		Singer s1=new Student();
		//s1.Sing();
		Writer w1=(Writer)s1;
		//w1.Write();
		Student st1=(Student)s1;
		st1.Sing();
		st1.Sleep();
		st1.Write();
	}
}

interface Singer {
	public void Sing();
	public void Sleep(); 
}

interface Writer {
	public void Write();
}

class Student implements Singer,Writer {
	public void Sing() {
		System.out.println("Student is singing");
	}
	public void Sleep() {
		System.out.println("Student is sleeping");
	}
	public void Write() {
		System.out.println("Student is Writing");
	}
}